package jpg1980.gttunes.actions;

import java.util.List;

import jpg1980.gttunes.beans.DriveTrain;
import jpg1980.gttunes.beans.TuneBasic;
import jpg1980.gttunes.dao.DaoFactory;
import jpg1980.gttunes.dao.DriveTrainDao;
import jpg1980.gttunes.dao.TuneBasicDao;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionSupport;

public class DriveTrainAction extends ActionSupport
{
	private static final long serialVersionUID = 1L;

	static Logger logger = Logger.getLogger(DriveTrainAction.class);

	List<DriveTrain> driveTrainList;

	public List<DriveTrain> getDriveTrainList()
	{
		return driveTrainList;
	}

	public void setDriveTrainList(List<DriveTrain> driveTrainList)
	{
		this.driveTrainList = driveTrainList;
	}

	public String jsonList()
	{
		DriveTrainDao driveTrainDao = DaoFactory.getDaoFactory().getDriveTrainDao();
		driveTrainList = driveTrainDao.readAll();

		return "json_list";
	}

}
